import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/circle_list_entity.dart';

CircleListEntity $CircleListEntityFromJson(Map<String, dynamic> json) {
	final CircleListEntity circleListEntity = CircleListEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		circleListEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		circleListEntity.code = code;
	}
	final CircleListData? data = jsonConvert.convert<CircleListData>(json['data']);
	if (data != null) {
		circleListEntity.data = data;
	}
	return circleListEntity;
}

Map<String, dynamic> $CircleListEntityToJson(CircleListEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

CircleListData $CircleListDataFromJson(Map<String, dynamic> json) {
	final CircleListData circleListData = CircleListData();
	final int? totalCount = jsonConvert.convert<int>(json['totalCount']);
	if (totalCount != null) {
		circleListData.totalCount = totalCount;
	}
	final int? pageSize = jsonConvert.convert<int>(json['pageSize']);
	if (pageSize != null) {
		circleListData.pageSize = pageSize;
	}
	final int? totalPage = jsonConvert.convert<int>(json['totalPage']);
	if (totalPage != null) {
		circleListData.totalPage = totalPage;
	}
	final int? currPage = jsonConvert.convert<int>(json['currPage']);
	if (currPage != null) {
		circleListData.currPage = currPage;
	}
	final List<CircleListDataList>? xList = jsonConvert.convertListNotNull<CircleListDataList>(json['list']);
	if (xList != null) {
		circleListData.xList = xList;
	}
	return circleListData;
}

Map<String, dynamic> $CircleListDataToJson(CircleListData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['totalCount'] = entity.totalCount;
	data['pageSize'] = entity.pageSize;
	data['totalPage'] = entity.totalPage;
	data['currPage'] = entity.currPage;
	data['list'] =  entity.xList?.map((v) => v.toJson()).toList();
	return data;
}

CircleListDataList $CircleListDataListFromJson(Map<String, dynamic> json) {
	final CircleListDataList circleListDataList = CircleListDataList();
	final String? userPic = jsonConvert.convert<String>(json['userPic']);
	if (userPic != null) {
		circleListDataList.userPic = userPic;
	}
	final int? postId = jsonConvert.convert<int>(json['postId']);
	if (postId != null) {
		circleListDataList.postId = postId;
	}
	final String? ryUserId = jsonConvert.convert<String>(json['ryUserId']);
	if (ryUserId != null) {
		circleListDataList.ryUserId = ryUserId;
	}
	final String? postTitle = jsonConvert.convert<String>(json['postTitle']);
	if (postTitle != null) {
		circleListDataList.postTitle = postTitle;
	}
	final String? postContent = jsonConvert.convert<String>(json['postContent']);
	if (postContent != null) {
		circleListDataList.postContent = postContent;
	}
	final int? seeType = jsonConvert.convert<int>(json['seeType']);
	if (seeType != null) {
		circleListDataList.seeType = seeType;
	}
	final String? postTypeName = jsonConvert.convert<String>(json['postTypeName']);
	if (postTypeName != null) {
		circleListDataList.postTypeName = postTypeName;
	}
	final dynamic? postType = jsonConvert.convert<dynamic>(json['postType']);
	if (postType != null) {
		circleListDataList.postType = postType;
	}
	final String? releaseTime = jsonConvert.convert<String>(json['releaseTime']);
	if (releaseTime != null) {
		circleListDataList.releaseTime = releaseTime;
	}
	final int? userId = jsonConvert.convert<int>(json['userId']);
	if (userId != null) {
		circleListDataList.userId = userId;
	}
	final String? nikeName = jsonConvert.convert<String>(json['nikeName']);
	if (nikeName != null) {
		circleListDataList.nikeName = nikeName;
	}
	final List<String>? postUrls = jsonConvert.convertListNotNull<String>(json['postUrls']);
	if (postUrls != null) {
		circleListDataList.postUrls = postUrls;
	}
	final List<CircleListDataListComments>? comments = jsonConvert.convertListNotNull<CircleListDataListComments>(json['comments']);
	if (comments != null) {
		circleListDataList.comments = comments;
	}
	final int? praiseCount = jsonConvert.convert<int>(json['praiseCount']);
	if (praiseCount != null) {
		circleListDataList.praiseCount = praiseCount;
	}
	final bool? isAttention = jsonConvert.convert<bool>(json['isAttention']);
	if (isAttention != null) {
		circleListDataList.isAttention = isAttention;
	}
	final bool? isPraise = jsonConvert.convert<bool>(json['isPraise']);
	if (isPraise != null) {
		circleListDataList.isPraise = isPraise;
	}
	final dynamic? shopStatus = jsonConvert.convert<dynamic>(json['shopStatus']);
	if (shopStatus != null) {
		circleListDataList.shopStatus = shopStatus;
	}
	final int? postStatus = jsonConvert.convert<int>(json['postStatus']);
	if (postStatus != null) {
		circleListDataList.postStatus = postStatus;
	}
	return circleListDataList;
}

Map<String, dynamic> $CircleListDataListToJson(CircleListDataList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['userPic'] = entity.userPic;
	data['postId'] = entity.postId;
	data['ryUserId'] = entity.ryUserId;
	data['postTitle'] = entity.postTitle;
	data['postContent'] = entity.postContent;
	data['seeType'] = entity.seeType;
	data['postTypeName'] = entity.postTypeName;
	data['postType'] = entity.postType;
	data['releaseTime'] = entity.releaseTime;
	data['userId'] = entity.userId;
	data['nikeName'] = entity.nikeName;
	data['postUrls'] =  entity.postUrls;
	data['comments'] =  entity.comments?.map((v) => v.toJson()).toList();
	data['praiseCount'] = entity.praiseCount;
	data['isAttention'] = entity.isAttention;
	data['isPraise'] = entity.isPraise;
	data['shopStatus'] = entity.shopStatus;
	data['postStatus'] = entity.postStatus;
	return data;
}

CircleListDataListComments $CircleListDataListCommentsFromJson(Map<String, dynamic> json) {
	final CircleListDataListComments circleListDataListComments = CircleListDataListComments();
	final int? commentId = jsonConvert.convert<int>(json['commentId']);
	if (commentId != null) {
		circleListDataListComments.commentId = commentId;
	}
	final String? commentContent = jsonConvert.convert<String>(json['commentContent']);
	if (commentContent != null) {
		circleListDataListComments.commentContent = commentContent;
	}
	final dynamic? commentType = jsonConvert.convert<dynamic>(json['commentType']);
	if (commentType != null) {
		circleListDataListComments.commentType = commentType;
	}
	final int? commentUserId = jsonConvert.convert<int>(json['commentUserId']);
	if (commentUserId != null) {
		circleListDataListComments.commentUserId = commentUserId;
	}
	final String? commentUserName = jsonConvert.convert<String>(json['commentUserName']);
	if (commentUserName != null) {
		circleListDataListComments.commentUserName = commentUserName;
	}
	final String? commentUserPic = jsonConvert.convert<String>(json['commentUserPic']);
	if (commentUserPic != null) {
		circleListDataListComments.commentUserPic = commentUserPic;
	}
	final int? replyUserId = jsonConvert.convert<int>(json['replyUserId']);
	if (replyUserId != null) {
		circleListDataListComments.replyUserId = replyUserId;
	}
	final String? replyUserName = jsonConvert.convert<String>(json['replyUserName']);
	if (replyUserName != null) {
		circleListDataListComments.replyUserName = replyUserName;
	}
	final String? replyUserPic = jsonConvert.convert<String>(json['replyUserPic']);
	if (replyUserPic != null) {
		circleListDataListComments.replyUserPic = replyUserPic;
	}
	final int? postId = jsonConvert.convert<int>(json['postId']);
	if (postId != null) {
		circleListDataListComments.postId = postId;
	}
	final String? commentTime = jsonConvert.convert<String>(json['commentTime']);
	if (commentTime != null) {
		circleListDataListComments.commentTime = commentTime;
	}
	final List<CommentsReplys>? replys = jsonConvert.convertListNotNull<CommentsReplys>(json['replys']);
	if (replys != null) {
		circleListDataListComments.replys = replys;
	}
	return circleListDataListComments;
}

Map<String, dynamic> $CircleListDataListCommentsToJson(CircleListDataListComments entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['commentId'] = entity.commentId;
	data['commentContent'] = entity.commentContent;
	data['commentType'] = entity.commentType;
	data['commentUserId'] = entity.commentUserId;
	data['commentUserName'] = entity.commentUserName;
	data['commentUserPic'] = entity.commentUserPic;
	data['replyUserId'] = entity.replyUserId;
	data['replyUserName'] = entity.replyUserName;
	data['replyUserPic'] = entity.replyUserPic;
	data['postId'] = entity.postId;
	data['commentTime'] = entity.commentTime;
	data['replys'] =  entity.replys?.map((v) => v.toJson()).toList();
	return data;
}

CommentsReplys $CommentsReplysFromJson(Map<String, dynamic> json) {
	final CommentsReplys commentsReplys = CommentsReplys();
	final int? commentId = jsonConvert.convert<int>(json['commentId']);
	if (commentId != null) {
		commentsReplys.commentId = commentId;
	}
	final String? replyContent = jsonConvert.convert<String>(json['replyContent']);
	if (replyContent != null) {
		commentsReplys.replyContent = replyContent;
	}
	final int? replyType = jsonConvert.convert<int>(json['replyType']);
	if (replyType != null) {
		commentsReplys.replyType = replyType;
	}
	final int? beReplyUserId = jsonConvert.convert<int>(json['beReplyUserId']);
	if (beReplyUserId != null) {
		commentsReplys.beReplyUserId = beReplyUserId;
	}
	final String? beReplyUserName = jsonConvert.convert<String>(json['beReplyUserName']);
	if (beReplyUserName != null) {
		commentsReplys.beReplyUserName = beReplyUserName;
	}
	final String? beReplyUserPic = jsonConvert.convert<String>(json['beReplyUserPic']);
	if (beReplyUserPic != null) {
		commentsReplys.beReplyUserPic = beReplyUserPic;
	}
	final int? replyUserId = jsonConvert.convert<int>(json['replyUserId']);
	if (replyUserId != null) {
		commentsReplys.replyUserId = replyUserId;
	}
	final String? replyUserName = jsonConvert.convert<String>(json['replyUserName']);
	if (replyUserName != null) {
		commentsReplys.replyUserName = replyUserName;
	}
	final String? replyUserPic = jsonConvert.convert<String>(json['replyUserPic']);
	if (replyUserPic != null) {
		commentsReplys.replyUserPic = replyUserPic;
	}
	final String? replyTime = jsonConvert.convert<String>(json['replyTime']);
	if (replyTime != null) {
		commentsReplys.replyTime = replyTime;
	}
	return commentsReplys;
}

Map<String, dynamic> $CommentsReplysToJson(CommentsReplys entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['commentId'] = entity.commentId;
	data['replyContent'] = entity.replyContent;
	data['replyType'] = entity.replyType;
	data['beReplyUserId'] = entity.beReplyUserId;
	data['beReplyUserName'] = entity.beReplyUserName;
	data['beReplyUserPic'] = entity.beReplyUserPic;
	data['replyUserId'] = entity.replyUserId;
	data['replyUserName'] = entity.replyUserName;
	data['replyUserPic'] = entity.replyUserPic;
	data['replyTime'] = entity.replyTime;
	return data;
}